<?php
/* Configure Validation Map*/
echo App::Load("Helper/Javascript")->validation_map(
                                                    Array(
                                                            '_errBg'=>ERROR_BACKGROUND,
                                                            '_dflBg'=>'#CFCFCF',
                                                            '_autoSubmit'=>'false',
                                                            '_errToolTips'=>'false',
                                                            '_errorMark' => 'inline'
                                                        )
                                                );
/* Configure the ajax submit form */
echo App::Load("Helper/Javascript")->ajax_submit(array("form_name"=>".app_validation","debug"=>"true","auto_hide"=>"true","message_element"=>".message"));
?>
<div class="common-curve-outer">
    <div class="common-curve">
        <div class="common-title">
            <?php if(isset($staticpage['title']) && $staticpage['title'] !=""):?><h1><?php echo $staticpage['title']; ?></h1><?php endif;?>
	            <div class="smart"><?php echo $this->__("See how you can send us a message");?></div>
        </div>
    </div>
</div>
<div class="inner">
    <div class="left p70">
        <div class="design_tool_wrapper">
            <span class="message" style="margin-left: 134px;"></span>
            <form method="post" class="app_form app_validation" action="<?php echo $this->baseUrl("/contactus"); ?>">
            <ul>
                <?php    
                echo App::Helper("Html")->get_from_row($this->__("First Name"),App::Helper("Html")->inputTag("data[Contact][f_name]","",array("class"=>"input check_notdefault",'id'=>'f_name','longdesc'=>$this->__('Please enter your first name'))));
                echo App::Helper("Html")->get_from_row($this->__("Last Name"),App::Helper("Html")->inputTag("data[Contact][l_name]","",array("class"=>"input check_notdefault",'id'=>'l_name','longdesc'=>$this->__('Please enter your last name'))) );
                echo App::Helper("Html")->get_from_row($this->__("Email "),App::Helper("Html")->inputTag("data[Contact][email]","",array("class"=>"input check_email",'id'=>'email')) );
                echo App::Helper("Html")->get_from_row($this->__("Subject"),App::Helper("Html")->inputTag("data[Contact][subject]","",array("class"=>"input check_notdefault",'id'=>'l_name','longdesc'=>$this->__('Please enter subject'))) );
                echo App::Helper("Html")->get_from_row($this->__("Message"),App::Helper("Html")->textareaTag("data[Contact][message]","",array("rows"=>"6","class"=>"input check_notdefault",'id'=>'note','longdesc'=>$this->__('Please enter your message.'))));
                echo App::Helper("Html")->get_from_row(App::Helper('Html')->capachaTag("contactus",Array("bk_color"=>"#111111","font_color"=>"#FFFFFF")),App::Helper("Html")->inputTag("data[Contact][capacha]","",array("class"=>"input check_notdefault",'id'=>'capacha','longdesc'=>$this->__('Please fillin the text display left side image.'))));
                echo App::Helper("Html")->get_from_row("&nbsp;",App::Helper("Html")->submitTag("data[Contact][submit]","Send",array("class" => "button")) );
                ?>
            </ul>
            </form>
            <br class="clearboth" />
        </div>
    </div>
    <div class="right p30">
        <div class="design_tool_wrapper">
        <?php echo $staticpage['content']; ?>
        </div>
    </div>
    <br class="clearboth" />
</div>
<div class="common-bottom-curve">&nbsp;</div>